package cn.stronglink.asset.module.assetmanage.itasset.service;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.baomidou.mybatisplus.plugins.Page;

import cn.stronglink.asset.module.assetmanage.itasset.mapper.ItassetSearchMapper;
import cn.stronglink.asset.module.assetmanage.itasset.vo.ItAssetVo;

@Service
@Transactional(rollbackFor=Exception.class) 
public class ItassetSearchService {
	
	@Autowired
	private ItassetSearchMapper itassetSearchMapper;

	@Transactional(propagation=Propagation.NOT_SUPPORTED,readOnly=true)
	public Page<ItAssetVo> dynamicQueryAssetList(Page<ItAssetVo> page, Map<String, Object> params) {
		page.setRecords(itassetSearchMapper.dynamicQueryAssetList(page,params));
		return page;
	}
	

}
